package com.hxgz.steel.dao;

import com.hxgz.steel.domain.Information;
import com.hxgz.steel.domain.InformationWithBLOBs;
import com.hxgz.steel.domain.NewsManager;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface InformationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(InformationWithBLOBs record);

    int insertSelective(InformationWithBLOBs record);

    InformationWithBLOBs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(InformationWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(InformationWithBLOBs record);

    int updateByPrimaryKey(Information record);

    List<NewsManager> queryInformationList(@Param("belongId") Integer type);

    NewsManager getInfoAndUserList(Long id);
}